.class Lorg/zeam/SelectorDrawable$SelectorShapeDrawable;
.super Landroid/graphics/drawable/ShapeDrawable;
.source "SelectorDrawable.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lorg/zeam/SelectorDrawable;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "SelectorShapeDrawable"
.end annotation


# instance fields
.field private mStrokePaint:Landroid/graphics/Paint;

.field final synthetic this$0:Lorg/zeam/SelectorDrawable;


# direct methods
.method private constructor <init>(Lorg/zeam/SelectorDrawable;I)V
    .locals 1
    .parameter
    .parameter "color"

    .prologue
    .line 46
    const/4 v0, 0x0

    invoke-direct {p0, p1, p2, v0}, Lorg/zeam/SelectorDrawable$SelectorShapeDrawable;-><init>(Lorg/zeam/SelectorDrawable;IZ)V

    .line 47
    return-void
.end method

.method synthetic constructor <init>(Lorg/zeam/SelectorDrawable;ILorg/zeam/SelectorDrawable$SelectorShapeDrawable;)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 45
    invoke-direct {p0, p1, p2}, Lorg/zeam/SelectorDrawable$SelectorShapeDrawable;-><init>(Lorg/zeam/SelectorDrawable;I)V

    return-void
.end method

.method private constructor <init>(Lorg/zeam/SelectorDrawable;IZ)V
    .locals 3
    .parameter
    .parameter "color"
    .parameter "roundCorners"

    .prologue
    .line 59
    iput-object p1, p0, Lorg/zeam/SelectorDrawable$SelectorShapeDrawable;->this$0:Lorg/zeam/SelectorDrawable;

    .line 49
    invoke-direct {p0}, Landroid/graphics/drawable/ShapeDrawable;-><init>()V

    .line 51
    new-instance v1, Landroid/graphics/drawable/shapes/RectShape;

    invoke-direct {v1}, Landroid/graphics/drawable/shapes/RectShape;-><init>()V

    invoke-virtual {p0, v1}, Lorg/zeam/SelectorDrawable$SelectorShapeDrawable;->setShape(Landroid/graphics/drawable/shapes/Shape;)V

    .line 52
    new-instance v1, Landroid/graphics/Paint;

    const/4 v2, 0x1

    invoke-direct {v1, v2}, Landroid/graphics/Paint;-><init>(I)V

    iput-object v1, p0, Lorg/zeam/SelectorDrawable$SelectorShapeDrawable;->mStrokePaint:Landroid/graphics/Paint;

    .line 54
    if-eqz p3, :cond_0

    .line 55
    new-instance v0, Landroid/graphics/CornerPathEffect;

    const/high16 v1, 0x40c0

    invoke-direct {v0, v1}, Landroid/graphics/CornerPathEffect;-><init>(F)V

    .line 56
    .local v0, cornerPathEffect:Landroid/graphics/PathEffect;
    iget-object v1, p0, Lorg/zeam/SelectorDrawable$SelectorShapeDrawable;->mStrokePaint:Landroid/graphics/Paint;

    invoke-virtual {v1, v0}, Landroid/graphics/Paint;->setPathEffect(Landroid/graphics/PathEffect;)Landroid/graphics/PathEffect;

    .line 58
    .end local v0           #cornerPathEffect:Landroid/graphics/PathEffect;
    :cond_0
    iget-object v1, p0, Lorg/zeam/SelectorDrawable$SelectorShapeDrawable;->mStrokePaint:Landroid/graphics/Paint;

    invoke-virtual {v1, p2}, Landroid/graphics/Paint;->setColor(I)V

    return-void
.end method

.method synthetic constructor <init>(Lorg/zeam/SelectorDrawable;IZLorg/zeam/SelectorDrawable$SelectorShapeDrawable;)V
    .locals 0
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 49
    invoke-direct {p0, p1, p2, p3}, Lorg/zeam/SelectorDrawable$SelectorShapeDrawable;-><init>(Lorg/zeam/SelectorDrawable;IZ)V

    return-void
.end method


# virtual methods
.method protected onDraw(Landroid/graphics/drawable/shapes/Shape;Landroid/graphics/Canvas;Landroid/graphics/Paint;)V
    .locals 1
    .parameter "shape"
    .parameter "canvas"
    .parameter "paint"

    .prologue
    .line 66
    iget-object v0, p0, Lorg/zeam/SelectorDrawable$SelectorShapeDrawable;->mStrokePaint:Landroid/graphics/Paint;

    invoke-virtual {p1, p2, v0}, Landroid/graphics/drawable/shapes/Shape;->draw(Landroid/graphics/Canvas;Landroid/graphics/Paint;)V

    .line 67
    const/4 v0, 0x0

    invoke-virtual {p3, v0}, Landroid/graphics/Paint;->setColor(I)V

    .line 68
    invoke-virtual {p1, p2, p3}, Landroid/graphics/drawable/shapes/Shape;->draw(Landroid/graphics/Canvas;Landroid/graphics/Paint;)V

    .line 69
    return-void
.end method
